Enable custom event masks for native windows
authorAlexander Larsson <alexl@redhat.com>
Wed, 4 Feb 2009 10:22:54 +0000 (11:22 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:32 +0000 (10:15 +0200)
commit53511cb65312133777f8a77b78aa82f0f4210fb3
treed6d855406fb7de8582b8cc4f943566a764e05ffc
parentfe3c410048a6b069efd63a2007d5a14606d0aa4a
Enable custom event masks for native windows

Some apps really need to set custom event masks on native child windows,
for example emacs sets the event masks with gdk, but then reads out
the raw X events via a filter, so gdk event emulation doesn't work for that.

When we get motion or button events we map back from the event position and
window to the toplevel before doing anything, because a toplevel native window
could e.g. overlap a child window or whatever.
gdk/gdkwindow.c